From: Colin Walters Date: Wed, 14 Jan 2015 02:32:02 +0000 (-0500) Subject: deltas: Do not traverse all objects, only both commits X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~990 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=97fbd872ae50b33e33284792922bf09693575235;p=ostree.git deltas: Do not traverse all objects, only both commits That's the way they were designed. We really don't want to include all intervening objects. https://bugzilla.gnome.org/show_bug.cgi?id=721799 --- diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c index 96c6324b..5aca367e 100644 --- a/src/libostree/ostree-repo-static-delta-compilation.c +++ b/src/libostree/ostree-repo-static-delta-compilation.c @@ -231,11 +231,11 @@ generate_delta_lowlatency (OstreeRepo *repo, g_hash_table_add (modified_content_objects, objname); } - if (!ostree_repo_traverse_commit (repo, from, -1, &from_reachable_objects, + if (!ostree_repo_traverse_commit (repo, from, 0, &from_reachable_objects, cancellable, error)) goto out; - if (!ostree_repo_traverse_commit (repo, to, -1, &to_reachable_objects, + if (!ostree_repo_traverse_commit (repo, to, 0, &to_reachable_objects, cancellable, error)) goto out;